<script setup lang="ts">
defineOptions({
  name: 'Result',
})

const router = useRouter()
const onClick = () => {
  router.replace({ path: '/' })
}
</script>

<template>
  <a-result status="success" title="操作成功">
    <template #extra>
      <a-space>
        <a-button type="primary" @click="onClick">
          返回首页
        </a-button>
      </a-space>
    </template>
  </a-result>
</template>

<style scoped>

</style>
